.heroBanner {
  position: relative;
  overflow: hidden;
  padding: 8rem 1.75rem 6rem;
  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(120, 132, 255, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #f3f4f8 85%);
}

html[data-theme='dark'] .heroBanner {
  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(120, 132, 255, 0.25),
      transparent 55%
    ),
    linear-gradient(180deg, #0c1020 0%, #0b0e1a 85%);
}

.heroGlow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 46% 28%,
      rgba(95, 106, 252, 0.14),
      transparent 40%
    ),
    radial-gradient(
      circle at 68% 70%,
      rgba(255, 79, 143, 0.08),
      transparent 36%
    );
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.heroGrid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  max-width: 1180px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.heroContent {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  animation: fadeSlide 0.6s ease 0.1s both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroBrand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.heroLogo {
  width: 48px;
  height: 48px;
}

.heroLogoText {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ifm-heading-color);
  letter-spacing: -0.5px;
}

html[data-theme='dark'] .heroLogoText {
  color: #f8fafc;
}

.heroOverline {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ifm-color-primary);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

.heroHighlight {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heroTagline {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ifm-color-emphasis-800);
  max-width: 640px;
  margin: 0;
}

html[data-theme='dark'] .heroTagline {
  color: #cbd5e1;
}

.ctaGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.primaryCta,
.secondaryCta,
.tertiaryCta {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.primaryCta {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.25);
  border: none;
  position: relative;
  overflow: hidden;
}

.primaryCta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  opacity: 0.15;
  pointer-events: none;
}

.primaryCta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.32);
}

.secondaryCta {
  background: rgba(99, 102, 241, 0.08);
  color: var(--ifm-color-primary-darker);
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.secondaryCta:hover {
  border-color: var(--ifm-color-primary);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
  color: var(--ifm-color-primary-darkest);
}

html[data-theme='dark'] .secondaryCta {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.42);
  color: #e8ecff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .secondaryCta:hover {
  background: rgba(99, 102, 241, 0.24);
  color: #f8fafc;
}

.tertiaryCta {
  background: rgba(14, 165, 233, 0.16);
  color: #0c4a6e;
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.tertiaryCta:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.18);
}

html[data-theme='dark'] .tertiaryCta {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.36);
}

html[data-theme='dark'] .tertiaryCta:hover {
  box-shadow: 0 10px 18px rgba(56, 189, 248, 0.18);
}

.installBar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(95, 106, 252, 0.15);
  font-family: var(--ifm-font-family-monospace);
  color: var(--ifm-color-emphasis-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  width: 100%;
}

html[data-theme='dark'] .installBar {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  border-color: rgba(95, 106, 252, 0.2);
  color: var(--ifm-color-primary-lightest);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.installCommand {
  white-space: nowrap;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  text-align: left;
  min-width: 0;
  font-size: 0.95rem;
}

.copyPill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  background: var(--ifm-card-background-color);
  border: 1px solid rgba(95, 106, 252, 0.22);
  border-radius: 12px;
  color: var(--ifm-color-emphasis-900);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.copyPill:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 106, 252, 0.6);
  box-shadow: 0 10px 18px rgba(95, 106, 252, 0.16);
  background: rgba(95, 106, 252, 0.06);
}

html[data-theme='dark'] .copyPill {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.55);
}

.copyIcon {
  display: inline-flex;
}

.heroPanel {
  background: rgba(30, 41, 82, 0.52);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(95, 106, 252, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-top: 1rem;
  animation: fadeUp 0.75s ease 0.25s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroPanel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 10%,
    rgba(255, 255, 255, 0.15),
    transparent 35%
  );
  pointer-events: none;
}

.panelHeader {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.panelBody {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.panelBadge {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  color: #e0e7ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.panelCode {
  background: rgba(15, 23, 42, 0.85) !important;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem !important;
  color: #e2e8f0;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 !important;
  overflow-x: auto;
  text-align: left;
}

.panelCode pre {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.panelCode code {
  background: transparent !important;
}

/* Always use dark mode styling for the code block */
.panelCode,
html[data-theme='light'] .panelCode {
  background: rgba(15, 23, 42, 0.85) !important;
  border: none !important;
  border-radius: 12px !important;
}

.panelCode pre,
.panelCode code,
.panelCode div,
.panelCode [class*='codeBlock'],
html[data-theme='light'] .panelCode pre,
html[data-theme='light'] .panelCode code,
html[data-theme='light'] .panelCode div,
html[data-theme='light'] .panelCode [class*='codeBlock'],
html[data-theme='light'] .panelCode pre[class*='language-'],
html[data-theme='light'] .panelCode code[class*='language-'] {
  background: transparent !important;
  border: none !important;
}

/* Style copy button for dark background */
html[data-theme='light'] .panelCode button[class*='copyButton'] {
  color: #d6deeb !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.panelFooter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(34, 211, 238, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

@media screen and (max-width: 1024px) {
  .heroBanner {
    padding: 4.5rem 1.5rem 3.5rem;
  }

  .heroGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.75rem;
  }

  .heroContent {
    max-width: 720px;
  }

  .heroPanel {
    max-width: 760px;
    justify-self: stretch;
  }
}

@media screen and (max-width: 768px) {
  .heroBanner {
    padding: 4rem 1.5rem 3.25rem;
  }

  .heroContent {
    align-items: stretch;
    gap: 1.5rem;
  }

  .heroTagline {
    font-size: 1.05rem;
  }

  .ctaGroup {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .primaryCta,
  .secondaryCta,
  .tertiaryCta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 1.05rem 1.5rem;
    font-size: 1.02rem;
  }

  .installBar {
    width: 100%;
    padding: 0.9rem 0.9rem;
    gap: 0.55rem;
  }
}

@media screen and (max-width: 540px) {
  .heroBanner {
    padding: 3.5rem 1.2rem 2.75rem;
  }

  .heroTagline {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .heroPanel,
  .installBar {
    width: 100%;
  }

  .installCommand {
    padding: 0.7rem 0.75rem;
  }
}
